package lv.bond.science.nnstudio.ui.testresult;

import java.util.ArrayList;
import java.util.List;

public class TestResult {

	private int nearestResultingVectorId;
	private int targetVectorId;
	
	public TestResult(int nearestResultingVectorId,
						int targetVectorId) 
	{
		this.nearestResultingVectorId = nearestResultingVectorId;
		this.targetVectorId = targetVectorId;
	}
	
	public boolean isMatching() {
		return (nearestResultingVectorId == 
					targetVectorId);
	}
	
	public int getNearestResultingVectorId() {
		return nearestResultingVectorId;
	}
	public void setNearestResultingVectorId(int nearestResultingVectorId) {
		this.nearestResultingVectorId = nearestResultingVectorId;
	}
	public int getTargetVectorId() {
		return targetVectorId;
	}
	public void setTargetVectorId(int targetVectorId) {
		this.targetVectorId = targetVectorId;
	}

	public static List<TestResult> example() {
		ArrayList<TestResult> result = 
			new ArrayList<TestResult>();
		
		//TestResult[] exampleData = new TestResult[4];
		TestResult tr1 = new TestResult(1, 1);
		TestResult tr2 = new TestResult(1, 2);
		TestResult tr3 = new TestResult(3, 3);
		TestResult tr4 = new TestResult(4, 4);
		result.add(tr1);
		result.add(tr2);
		result.add(tr3);
		result.add(tr4);
		//exampleData[0] = tr1;
		//exampleData[1] = tr2;
		//exampleData[2] = tr3;
		//exampleData[3] = tr4;
		return result;//exampleData;
	}
	
	
}
